package demo.hms.liverecords.service.servicelmpl;

import demo.hms.liverecords.dao.LiveRecordsDao;
import demo.hms.liverecords.service.LiveRecordsService;
import demo.hms.mybatis.entity.LiveRecords;
import demo.hms.util.Result;
import demo.hms.util.ResultSubmit;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LiveRecordsServicelmpl implements LiveRecordsService {
    @Resource
    private LiveRecordsDao dao;

    @Override
    public Result queryAll(LiveRecords liveRecords) {
        return ResultSubmit.success(dao.queryAll(liveRecords));
    }

    @Override
    public int insert(LiveRecords liveRecords) {
        return dao.insert(liveRecords);
    }

}
